﻿/*-----------------------------------------------------------------------------!
! SaleType entity class                                                        !
!------------------------------------------------------------------------------!
! System   : Inventory Management System                                       !
! Client   : UK based                                                          !
! Date     : April 2011                                                        !
! Copyright: (C) KAWISOFT Inc                                                  !
! Program  : SaleType.cs                                                       !
! Function : All field of SaleType table                                       !
!------------------------------------------------------------------------------!
! Notes:                                                                       !
! Original author: Md. Shaiful Islam                                           !
! Last changed by: Md. Shaiful Islam, May 09 2011                              !
===============================================================================*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Upadan
{
    public class SaleType
    {
        private string _Id;
        private string _Name;
        private string _Live;

        // SaleType Id
        public string Id
        {
            get { return _Id; }
            set
            {
                _Id = value;
                _Id = (_Id.Length > 20) ? _Id.Substring(0, 20) : _Id;
            }
        }

        // SaleType Name
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                _Name = (_Name.Length > 50) ? _Name.Substring(0, 50) : _Name;
            }
        }

        // SaleType Live
        public string Live
        {
            get { return _Live; }
            set
            {
                _Live = value;
                _Live = (_Live.Length > 1) ? _Live.Substring(0, 1) : _Live;
            }
        }
    }
}
